package com.fasterxml.jackson.core;

import com.getpebble.android.R;
import com.sun.mail.smtp.SMTPMessage;

public abstract class JsonStreamContext {
    protected int _index;
    protected int _type;

    protected JsonStreamContext() {
    }

    public final boolean inArray() {
        return this._type == 1;
    }

    public final boolean inObject() {
        return this._type == 2;
    }

    public final String getTypeDesc() {
        switch (this._type) {
            case R.styleable.WalletFragmentStyle_buyButtonHeight /*0*/:
                return "ROOT";
            case SMTPMessage.RETURN_FULL /*1*/:
                return "ARRAY";
            case SMTPMessage.RETURN_HDRS /*2*/:
                return "OBJECT";
            default:
                return "?";
        }
    }

    public final int getEntryCount() {
        return this._index + 1;
    }

    public final int getCurrentIndex() {
        return this._index < 0 ? 0 : this._index;
    }
}
